home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-07-24 | 3.9 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| MS-DOS Code Page Info (other/dosCodePage)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jul 24 14:14:26 1990, modified Tue Jul 24 14:14:26 1990, creator 'MPS ', type ASCII, 3429 bytes "FixTables.cp" , at 0xde5 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 46 69 78 54 61 62 | 6c 65 73 2e 63 70 00 00 |..FixTab|les.cp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 40 00 80 00 |.TEXTMPS| ...@...|
|00000050| 00 00 00 00 00 0d 65 00 | 00 01 7e a2 d2 40 82 a2 |......e.|..~..@..|
|00000060| d2 40 82 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cf c3 00 00 |........|........|
|00000080| 2f 2a 0d 09 46 69 78 54 | 61 62 6c 65 73 2e 63 70 |/*..FixT|ables.cp|
|00000090| 0d 09 0d 09 41 6e 20 4d | 50 57 20 54 6f 6f 6c 20 |....An M|PW Tool |
|000000a0| 74 6f 20 66 69 78 20 43 | 46 72 6f 6e 74 27 73 20 |to fix C|Front's |
|000000b0| 76 69 72 74 75 61 6c 20 | 74 61 62 6c 65 73 20 69 |virtual |tables i|
|000000c0| 6e 20 6f 72 64 65 72 20 | 74 6f 20 0d 09 68 61 76 |n order |to ..hav|
|000000d0| 65 20 74 68 65 6d 20 69 | 6e 69 74 69 61 6c 69 7a |e them i|nitializ|
|000000e0| 65 64 20 61 74 20 72 75 | 6e 2d 74 69 6d 65 2e 0d |ed at ru|n-time..|
|000000f0| 09 0d 09 62 79 20 50 61 | 74 72 69 63 6b 20 42 65 |...by Pa|trick Be|
|00000100| 61 72 64 2e 0d 09 0d 20 | 2a 2f 0d 0d 23 69 6e 63 |ard.... |*/..#inc|
|00000110| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0d 23 |lude <st|dio.h>.#|
|00000120| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00000130| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 63 74 79 |h>.#incl|ude <cty|
|00000140| 70 65 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |pe.h>.#i|nclude <|
|00000150| 54 79 70 65 73 2e 68 3e | 0d 0d 63 68 61 72 20 6c |Types.h>|..char l|
|00000160| 69 6e 65 5b 35 31 32 5d | 3b 09 09 09 2f 2f 20 61 |ine[512]|;...// a|
|00000170| 20 6c 69 6e 65 20 6f 66 | 20 69 6e 70 75 74 2e 0d | line of| input..|
|00000180| 63 68 61 72 20 74 65 6d | 70 5b 35 31 32 5d 3b 09 |char tem|p[512];.|
|00000190| 09 09 2f 2f 20 74 65 6d | 70 6f 72 61 72 79 20 62 |..// tem|porary b|
|000001a0| 75 66 66 65 72 2e 0d 63 | 68 61 72 20 63 6c 61 73 |uffer..c|har clas|
|000001b0| 73 4e 61 6d 65 5b 35 31 | 32 5d 3b 09 2f 2f 20 74 |sName[51|2];.// t|
|000001c0| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6c 61 73 73 |he curre|nt class|
|000001d0| 20 6e 61 6d 65 20 28 6d | 61 6e 67 6c 65 64 29 2e | name (m|angled).|
|000001e0| 0d 0d 76 6f 69 64 20 4d | 49 46 69 78 54 61 62 6c |..void M|IFixTabl|
|000001f0| 65 73 28 29 0d 7b 0d 09 | 63 68 61 72 20 2a 74 61 |es().{..|char *ta|
|00000200| 62 6c 65 5f 73 74 61 72 | 74 73 20 3d 20 22 73 74 |ble_star|ts = "st|
|00000210| 72 75 63 74 20 5f 5f 6d | 70 74 72 20 5f 5f 76 74 |ruct __m|ptr __vt|
|00000220| 62 6c 5f 5f 22 3b 09 2f | 2f 20 62 65 67 69 6e 73 |bl__";./|/ begins|
|00000230| 20 65 61 63 68 20 74 61 | 62 6c 65 20 64 65 63 6c | each ta|ble decl|
|00000240| 61 72 61 74 69 6f 6e 2e | 0d 09 69 6e 74 20 73 74 |aration.|..int st|
|00000250| 61 72 74 73 5f 6d 61 74 | 63 68 5f 6c 65 6e 20 3d |arts_mat|ch_len =|
|00000260| 20 73 74 72 6c 65 6e 28 | 74 61 62 6c 65 5f 73 74 | strlen(|table_st|
|00000270| 61 72 74 73 29 3b 0d 09 | 63 68 61 72 20 2a 74 61 |arts);..|char *ta|
|00000280| 62 6c 65 5f 65 6e 64 73 | 20 3d 20 22 30 2c 30 2c |ble_ends| = "0,0,|
|00000290| 30 7d 3b 22 3b 0d 09 69 | 6e 74 20 65 6e 64 73 5f |0};";..i|nt ends_|
|000002a0| 6d 61 74 63 68 5f 6c 65 | 6e 20 3d 20 73 74 72 6c |match_le|n = strl|
|000002b0| 65 6e 28 74 61 62 6c 65 | 5f 65 6e 64 73 29 3b 0d |en(table|_ends);.|
|000002c0| 09 69 6e 74 20 69 6e 64 | 65 78 3b 0d 09 69 6e 74 |.int ind|ex;..int|
|000002d0| 20 66 6f 75 6e 64 5f 74 | 61 62 6c 65 20 3d 20 30 | found_t|able = 0|
|000002e0| 3b 0d 09 63 68 61 72 20 | 2a 74 6f 6b 65 6e 2c 20 |;..char |*token, |
|000002f0| 2a 73 2c 20 2a 64 3b 0d | 09 0d 09 2f 2f 20 62 65 |*s, *d;.|...// be|
|00000300| 67 69 6e 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |gin the |function|
|00000310| 2e 0d 09 66 70 72 69 6e | 74 66 28 73 74 64 6f 75 |...fprin|tf(stdou|
|00000320| 74 2c 20 22 76 6f 69 64 | 20 69 6e 69 74 5f 76 74 |t, "void| init_vt|
|00000330| 62 6c 73 28 76 6f 69 64 | 29 5c 6e 7b 5c 6e 22 29 |bls(void|)\n{\n")|
|00000340| 3b 0d 09 0d 09 77 68 69 | 6c 65 28 66 67 65 74 73 |;....whi|le(fgets|
|00000350| 28 6c 69 6e 65 2c 20 73 | 69 7a 65 6f 66 28 6c 69 |(line, s|izeof(li|
|00000360| 6e 65 29 2c 20 73 74 64 | 69 6e 29 29 20 7b 0d 09 |ne), std|in)) {..|
|00000370| 09 69 66 28 21 66 6f 75 | 6e 64 5f 74 61 62 6c 65 |.if(!fou|nd_table|
|00000380| 29 20 7b 0d 09 09 09 69 | 66 28 73 74 72 6e 63 6d |) {....i|f(strncm|
|00000390| 70 28 74 61 62 6c 65 5f | 73 74 61 72 74 73 2c 20 |p(table_|starts, |
|000003a0| 6c 69 6e 65 2c 20 73 74 | 61 72 74 73 5f 6d 61 74 |line, st|arts_mat|
|000003b0| 63 68 5f 6c 65 6e 29 20 | 3d 3d 20 30 29 20 7b 0d |ch_len) |== 0) {.|
|000003c0| 09 09 09 09 2f 2f 20 77 | 65 27 76 65 20 73 74 61 |....// w|e've sta|
|000003d0| 72 74 65 64 20 70 61 72 | 73 69 6e 67 20 61 20 74 |rted par|sing a t|
|000003e0| 61 62 6c 65 2e 0d 09 09 | 09 09 73 20 3d 20 26 6c |able....|..s = &l|
|000003f0| 69 6e 65 5b 73 74 61 72 | 74 73 5f 6d 61 74 63 68 |ine[star|ts_match|
|00000400| 5f 6c 65 6e 5d 3b 20 64 | 20 3d 20 63 6c 61 73 73 |_len]; d| = class|
|00000410| 4e 61 6d 65 3b 0d 09 09 | 09 09 77 68 69 6c 65 28 |Name;...|..while(|
|00000420| 20 2a 73 20 21 3d 20 27 | 5b 27 29 20 2a 64 2b 2b | *s != '|[') *d++|
|00000430| 20 3d 20 2a 73 2b 2b 3b | 0d 09 09 09 09 2a 64 20 | = *s++;|.....*d |
|00000440| 3d 20 30 3b 0d 09 09 09 | 09 66 70 72 69 6e 74 66 |= 0;....|.fprintf|
|00000450| 28 73 74 64 6f 75 74 2c | 20 22 2f 2a 20 63 6c 61 |(stdout,| "/* cla|
|00000460| 73 73 4e 61 6d 65 20 3d | 20 25 73 20 2a 2f 5c 6e |ssName =| %s */\n|
|00000470| 22 2c 20 63 6c 61 73 73 | 4e 61 6d 65 29 3b 09 09 |", class|Name);..|
|00000480| 09 09 0d 09 09 09 09 69 | 6e 64 65 78 20 3d 20 31 |.......i|ndex = 1|
|00000490| 3b 0d 09 09 09 09 66 6f | 75 6e 64 5f 74 61 62 6c |;.....fo|und_tabl|
|000004a0| 65 20 3d 20 31 3b 0d 09 | 09 09 7d 0d 09 09 7d 20 |e = 1;..|..}...} |
|000004b0| 65 6c 73 65 20 7b 0d 09 | 09 09 2f 2f 20 77 65 27 |else {..|..// we'|
|000004c0| 72 65 20 70 72 6f 63 65 | 73 73 69 6e 67 20 61 20 |re proce|ssing a |
|000004d0| 74 61 62 6c 65 2e 0d 09 | 09 09 69 66 28 73 74 72 |table...|..if(str|
|000004e0| 6e 63 6d 70 28 74 61 62 | 6c 65 5f 65 6e 64 73 2c |ncmp(tab|le_ends,|
|000004f0| 20 6c 69 6e 65 2c 20 65 | 6e 64 73 5f 6d 61 74 63 | line, e|nds_matc|
|00000500| 68 5f 6c 65 6e 29 20 21 | 3d 20 30 29 20 7b 0d 09 |h_len) !|= 0) {..|
|00000510| 09 09 09 74 6f 6b 65 6e | 20 3d 20 73 74 72 74 6f |...token| = strto|
|00000520| 6b 28 6c 69 6e 65 2c 20 | 22 2c 22 29 3b 0d 09 09 |k(line, |",");...|
|00000530| 09 09 69 66 28 73 74 72 | 63 6d 70 28 74 6f 6b 65 |..if(str|cmp(toke|
|00000540| 6e 2c 20 22 30 22 29 20 | 21 3d 20 30 29 0d 09 09 |n, "0") |!= 0)...|
|00000550| 09 09 09 66 70 72 69 6e | 74 66 28 73 74 64 6f 75 |...fprin|tf(stdou|
|00000560| 74 2c 20 22 5f 5f 76 74 | 62 6c 5f 5f 25 73 5b 25 |t, "__vt|bl__%s[%|
|00000570| 64 5d 2e 64 20 3d 20 25 | 73 3b 5c 6e 22 2c 20 63 |d].d = %|s;\n", c|
|00000580| 6c 61 73 73 4e 61 6d 65 | 2c 20 69 6e 64 65 78 2c |lassName|, index,|
|00000590| 20 74 6f 6b 65 6e 29 3b | 0d 09 09 09 09 74 6f 6b | token);|.....tok|
|000005a0| 65 6e 20 3d 20 73 74 72 | 74 6f 6b 28 4e 55 4c 4c |en = str|tok(NULL|
|000005b0| 2c 20 22 2c 22 29 3b 0d | 09 09 09 09 69 66 28 73 |, ",");.|....if(s|
|000005c0| 74 72 63 6d 70 28 74 6f | 6b 65 6e 2c 20 22 30 22 |trcmp(to|ken, "0"|
|000005d0| 29 20 21 3d 20 30 29 0d | 09 09 09 09 09 66 70 72 |) != 0).|.....fpr|
|000005e0| 69 6e 74 66 28 73 74 64 | 6f 75 74 2c 20 22 5f 5f |intf(std|out, "__|
|000005f0| 76 74 62 6c 5f 5f 25 73 | 5b 25 64 5d 2e 69 20 3d |vtbl__%s|[%d].i =|
|00000600| 20 25 73 3b 5c 6e 22 2c | 20 63 6c 61 73 73 4e 61 | %s;\n",| classNa|
|00000610| 6d 65 2c 20 69 6e 64 65 | 78 2c 20 74 6f 6b 65 6e |me, inde|x, token|
|00000620| 29 3b 0d 09 09 09 09 74 | 6f 6b 65 6e 20 3d 20 73 |);.....t|oken = s|
|00000630| 74 72 74 6f 6b 28 4e 55 | 4c 4c 2c 20 22 2c 22 29 |trtok(NU|LL, ",")|
|00000640| 3b 09 2f 2f 20 74 68 69 | 73 20 74 6f 6b 65 6e 20 |;.// thi|s token |
|00000650| 70 6f 69 6e 74 73 20 74 | 6f 20 65 6e 74 72 79 20 |points t|o entry |
|00000660| 77 65 20 77 61 6e 74 2e | 0d 09 09 09 09 66 70 72 |we want.|.....fpr|
|00000670| 69 6e 74 66 28 73 74 64 | 6f 75 74 2c 20 22 5f 5f |intf(std|out, "__|
|00000680| 76 74 62 6c 5f 5f 25 73 | 5b 25 64 5d 2e 66 20 3d |vtbl__%s|[%d].f =|
|00000690| 20 25 73 3b 5c 6e 22 2c | 20 63 6c 61 73 73 4e 61 | %s;\n",| classNa|
|000006a0| 6d 65 2c 20 69 6e 64 65 | 78 2b 2b 2c 20 74 6f 6b |me, inde|x++, tok|
|000006b0| 65 6e 29 3b 0d 09 09 09 | 7d 20 65 6c 73 65 20 7b |en);....|} else {|
|000006c0| 0d 09 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.....fpr|intf(std|
|000006d0| 6f 75 74 2c 20 22 5f 5f | 70 74 62 6c 5f 5f 25 73 |out, "__|ptbl__%s|
|000006e0| 20 3d 20 5f 5f 76 74 62 | 6c 5f 5f 25 73 3b 5c 6e | = __vtb|l__%s;\n|
|000006f0| 22 2c 20 63 6c 61 73 73 | 4e 61 6d 65 2c 20 63 6c |", class|Name, cl|
|00000700| 61 73 73 4e 61 6d 65 29 | 3b 0d 09 09 09 09 66 6f |assName)|;.....fo|
|00000710| 75 6e 64 5f 74 61 62 6c | 65 20 3d 20 30 3b 09 2f |und_tabl|e = 0;./|
|00000720| 2f 20 73 74 61 72 74 20 | 6f 76 65 72 20 61 6e 64 |/ start |over and|
|00000730| 20 73 65 61 72 63 68 20 | 66 6f 72 20 61 6e 6f 74 | search |for anot|
|00000740| 68 65 72 20 74 61 62 6c | 65 2e 0d 09 09 09 7d 0d |her tabl|e.....}.|
|00000750| 09 09 7d 0d 09 7d 0d 09 | 0d 09 2f 2f 20 66 69 6e |..}..}..|..// fin|
|00000760| 69 73 68 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |ish the |function|
|00000770| 20 6f 66 66 2e 0d 09 66 | 70 72 69 6e 74 66 28 73 | off...f|printf(s|
|00000780| 74 64 6f 75 74 2c 20 22 | 7d 5c 6e 22 29 3b 09 0d |tdout, "|}\n");..|
|00000790| 7d 0d 0d 76 6f 69 64 20 | 53 49 46 69 78 54 61 62 |}..void |SIFixTab|
|000007a0| 6c 65 73 28 29 0d 7b 0d | 09 63 68 61 72 20 2a 74 |les().{.|.char *t|
|000007b0| 61 62 6c 65 5f 73 74 61 | 72 74 73 20 3d 20 22 5f |able_sta|rts = "_|
|000007c0| 5f 76 70 74 70 20 5f 5f | 76 74 62 6c 5f 5f 22 3b |_vptp __|vtbl__";|
|000007d0| 09 2f 2f 20 62 65 67 69 | 6e 73 20 65 61 63 68 20 |.// begi|ns each |
|000007e0| 74 61 62 6c 65 20 64 65 | 63 6c 61 72 61 74 69 6f |table de|claratio|
|000007f0| 6e 2e 0d 09 69 6e 74 20 | 73 74 61 72 74 73 5f 6d |n...int |starts_m|
|00000800| 61 74 63 68 5f 6c 65 6e | 20 3d 20 73 74 72 6c 65 |atch_len| = strle|
|00000810| 6e 28 74 61 62 6c 65 5f | 73 74 61 72 74 73 29 3b |n(table_|starts);|
|00000820| 0d 09 63 68 61 72 20 2a | 74 61 62 6c 65 5f 65 6e |..char *|table_en|
|00000830| 64 73 20 3d 20 22 30 7d | 3b 22 3b 0d 09 69 6e 74 |ds = "0}|;";..int|
|00000840| 20 65 6e 64 73 5f 6d 61 | 74 63 68 5f 6c 65 6e 20 | ends_ma|tch_len |
|00000850| 3d 20 73 74 72 6c 65 6e | 28 74 61 62 6c 65 5f 65 |= strlen|(table_e|
|00000860| 6e 64 73 29 3b 0d 09 69 | 6e 74 20 69 6e 64 65 78 |nds);..i|nt index|
|00000870| 3b 0d 09 69 6e 74 20 66 | 6f 75 6e 64 5f 74 61 62 |;..int f|ound_tab|
|00000880| 6c 65 20 3d 20 30 3b 0d | 09 63 68 61 72 20 2a 74 |le = 0;.|.char *t|
|00000890| 6f 6b 65 6e 2c 20 2a 73 | 2c 20 2a 64 3b 0d 09 0d |oken, *s|, *d;...|
|000008a0| 09 2f 2f 20 62 65 67 69 | 6e 20 74 68 65 20 66 75 |.// begi|n the fu|
|000008b0| 6e 63 74 69 6f 6e 2e 0d | 09 66 70 72 69 6e 74 66 |nction..|.fprintf|
|000008c0| 28 73 74 64 6f 75 74 2c | 20 22 76 6f 69 64 20 69 |(stdout,| "void i|
|000008d0| 6e 69 74 5f 76 74 62 6c | 73 28 76 6f 69 64 29 5c |nit_vtbl|s(void)\|
|000008e0| 6e 7b 5c 6e 22 29 3b 0d | 09 0d 09 77 68 69 6c 65 |n{\n");.|...while|
|000008f0| 28 66 67 65 74 73 28 6c | 69 6e 65 2c 20 73 69 7a |(fgets(l|ine, siz|
|00000900| 65 6f 66 28 6c 69 6e 65 | 29 2c 20 73 74 64 69 6e |eof(line|), stdin|
|00000910| 29 29 20 7b 0d 09 09 69 | 66 28 21 66 6f 75 6e 64 |)) {...i|f(!found|
|00000920| 5f 74 61 62 6c 65 29 20 | 7b 0d 09 09 09 69 66 28 |_table) |{....if(|
|00000930| 73 74 72 6e 63 6d 70 28 | 74 61 62 6c 65 5f 73 74 |strncmp(|table_st|
|00000940| 61 72 74 73 2c 20 6c 69 | 6e 65 2c 20 73 74 61 72 |arts, li|ne, star|
|00000950| 74 73 5f 6d 61 74 63 68 | 5f 6c 65 6e 29 20 3d 3d |ts_match|_len) ==|
|00000960| 20 30 29 20 7b 0d 09 09 | 09 09 2f 2f 20 77 65 27 | 0) {...|..// we'|
|00000970| 76 65 20 73 74 61 72 74 | 65 64 20 70 61 72 73 69 |ve start|ed parsi|
|00000980| 6e 67 20 61 20 74 61 62 | 6c 65 2e 0d 09 09 09 09 |ng a tab|le......|
|00000990| 73 20 3d 20 26 6c 69 6e | 65 5b 73 74 61 72 74 73 |s = &lin|e[starts|
|000009a0| 5f 6d 61 74 63 68 5f 6c | 65 6e 5d 3b 20 64 20 3d |_match_l|en]; d =|
|000009b0| 20 63 6c 61 73 73 4e 61 | 6d 65 3b 0d 09 09 09 09 | classNa|me;.....|
|000009c0| 77 68 69 6c 65 28 20 2a | 73 20 21 3d 20 27 5b 27 |while( *|s != '['|
|000009d0| 29 20 2a 64 2b 2b 20 3d | 20 2a 73 2b 2b 3b 0d 09 |) *d++ =| *s++;..|
|000009e0| 09 09 09 2a 64 20 3d 20 | 30 3b 0d 09 09 09 09 66 |...*d = |0;.....f|
|000009f0| 70 72 69 6e 74 66 28 73 | 74 64 6f 75 74 2c 20 22 |printf(s|tdout, "|
|00000a00| 2f 2a 20 63 6c 61 73 73 | 4e 61 6d 65 20 3d 20 25 |/* class|Name = %|
|00000a10| 73 20 2a 2f 5c 6e 22 2c | 20 63 6c 61 73 73 4e 61 |s */\n",| classNa|
|00000a20| 6d 65 29 3b 09 09 09 09 | 0d 09 09 09 09 69 6e 64 |me);....|.....ind|
|00000a30| 65 78 20 3d 20 31 3b 0d | 09 09 09 09 66 6f 75 6e |ex = 1;.|....foun|
|00000a40| 64 5f 74 61 62 6c 65 20 | 3d 20 31 3b 0d 09 09 09 |d_table |= 1;....|
|00000a50| 7d 0d 09 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 09 |}...} el|se {....|
|00000a60| 2f 2f 20 77 65 27 72 65 | 20 70 72 6f 63 65 73 73 |// we're| process|
|00000a70| 69 6e 67 20 61 20 74 61 | 62 6c 65 2e 0d 09 09 09 |ing a ta|ble.....|
|00000a80| 69 66 28 73 74 72 6e 63 | 6d 70 28 74 61 62 6c 65 |if(strnc|mp(table|
|00000a90| 5f 65 6e 64 73 2c 20 6c | 69 6e 65 2c 20 65 6e 64 |_ends, l|ine, end|
|00000aa0| 73 5f 6d 61 74 63 68 5f | 6c 65 6e 29 20 21 3d 20 |s_match_|len) != |
|00000ab0| 30 29 20 7b 0d 09 09 09 | 09 74 6f 6b 65 6e 20 3d |0) {....|.token =|
|00000ac0| 20 73 74 72 74 6f 6b 28 | 6c 69 6e 65 2c 20 22 2c | strtok(|line, ",|
|00000ad0| 22 29 3b 0d 09 09 09 09 | 66 70 72 69 6e 74 66 28 |");.....|fprintf(|
|00000ae0| 73 74 64 6f 75 74 2c 20 | 22 5f 5f 76 74 62 6c 5f |stdout, |"__vtbl_|
|00000af0| 5f 25 73 5b 25 64 5d 20 | 3d 20 25 73 3b 5c 6e 22 |_%s[%d] |= %s;\n"|
|00000b00| 2c 20 63 6c 61 73 73 4e | 61 6d 65 2c 20 69 6e 64 |, classN|ame, ind|
|00000b10| 65 78 2b 2b 2c 20 74 6f | 6b 65 6e 29 3b 0d 09 09 |ex++, to|ken);...|
|00000b20| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 09 09 09 66 70 |.} else |{.....fp|
|00000b30| 72 69 6e 74 66 28 73 74 | 64 6f 75 74 2c 20 22 5f |rintf(st|dout, "_|
|00000b40| 5f 70 74 62 6c 5f 5f 25 | 73 20 3d 20 5f 5f 76 74 |_ptbl__%|s = __vt|
|00000b50| 62 6c 5f 5f 25 73 3b 5c | 6e 22 2c 20 63 6c 61 73 |bl__%s;\|n", clas|
|00000b60| 73 4e 61 6d 65 2c 20 63 | 6c 61 73 73 4e 61 6d 65 |sName, c|lassName|
|00000b70| 29 3b 0d 09 09 09 09 66 | 6f 75 6e 64 5f 74 61 62 |);.....f|ound_tab|
|00000b80| 6c 65 20 3d 20 30 3b 09 | 2f 2f 20 73 74 61 72 74 |le = 0;.|// start|
|00000b90| 20 6f 76 65 72 20 61 6e | 64 20 73 65 61 72 63 68 | over an|d search|
|00000ba0| 20 66 6f 72 20 61 6e 6f | 74 68 65 72 20 74 61 62 | for ano|ther tab|
|00000bb0| 6c 65 2e 0d 09 09 09 7d | 0d 09 09 7d 0d 09 7d 0d |le.....}|...}..}.|
|00000bc0| 09 0d 09 2f 2f 20 66 69 | 6e 69 73 68 20 74 68 65 |...// fi|nish the|
|00000bd0| 20 66 75 6e 63 74 69 6f | 6e 20 6f 66 66 2e 0d 09 | functio|n off...|
|00000be0| 66 70 72 69 6e 74 66 28 | 73 74 64 6f 75 74 2c 20 |fprintf(|stdout, |
|00000bf0| 22 7d 5c 6e 22 29 3b 09 | 0d 7d 0d 0d 0d 42 6f 6f |"}\n");.|.}...Boo|
|00000c00| 6c 65 61 6e 20 55 73 69 | 6e 67 4d 75 6c 74 69 70 |lean Usi|ngMultip|
|00000c10| 6c 65 49 6e 68 65 72 69 | 74 61 6e 63 65 28 69 6e |leInheri|tance(in|
|00000c20| 74 20 61 72 67 63 2c 20 | 63 68 61 72 2a 2a 20 61 |t argc, |char** a|
|00000c30| 72 67 76 29 0d 7b 0d 09 | 2f 2f 20 62 79 20 64 65 |rgv).{..|// by de|
|00000c40| 66 61 75 6c 74 2c 20 77 | 65 20 63 68 65 77 20 6f |fault, w|e chew o|
|00000c50| 6e 20 74 68 65 20 74 61 | 62 6c 65 73 20 61 73 73 |n the ta|bles ass|
|00000c60| 75 6d 69 6e 67 20 6d 75 | 6c 74 69 70 6c 65 20 69 |uming mu|ltiple i|
|00000c70| 6e 68 65 72 69 74 61 6e | 63 65 2e 0d 09 42 6f 6f |nheritan|ce...Boo|
|00000c80| 6c 65 61 6e 20 75 73 65 | 4d 49 20 3d 20 74 72 75 |lean use|MI = tru|
|00000c90| 65 3b 0d 09 77 68 69 6c | 65 28 2d 2d 61 72 67 63 |e;..whil|e(--argc|
|00000ca0| 29 20 7b 0d 09 09 63 68 | 61 72 20 2a 61 72 67 20 |) {...ch|ar *arg |
|00000cb0| 3d 20 2a 2b 2b 61 72 67 | 76 3b 0d 09 09 69 66 28 |= *++arg|v;...if(|
|00000cc0| 61 72 67 5b 30 5d 20 3d | 3d 20 27 2d 27 29 20 7b |arg[0] =|= '-') {|
|00000cd0| 0d 09 09 09 73 77 69 74 | 63 68 28 74 6f 6c 6f 77 |....swit|ch(tolow|
|00000ce0| 65 72 28 61 72 67 5b 31 | 5d 29 29 20 7b 0d 09 09 |er(arg[1|])) {...|
|00000cf0| 09 63 61 73 65 20 27 6d | 27 3a 0d 09 09 09 09 75 |.case 'm|':.....u|
|00000d00| 73 65 4d 49 20 3d 20 74 | 72 75 65 3b 0d 09 09 09 |seMI = t|rue;....|
|00000d10| 09 62 72 65 61 6b 3b 0d | 09 09 09 63 61 73 65 20 |.break;.|...case |
|00000d20| 27 73 27 3a 0d 09 09 09 | 09 75 73 65 4d 49 20 3d |'s':....|.useMI =|
|00000d30| 20 66 61 6c 73 65 3b 0d | 09 09 09 09 62 72 65 61 | false;.|....brea|
|00000d40| 6b 3b 0d 09 09 09 7d 0d | 09 09 7d 0d 09 7d 0d 09 |k;....}.|..}..}..|
|00000d50| 0d 09 72 65 74 75 72 6e | 20 75 73 65 4d 49 3b 0d |..return| useMI;.|
|00000d60| 7d 0d 0d 69 6e 74 20 6d | 61 69 6e 28 69 6e 74 20 |}..int m|ain(int |
|00000d70| 61 72 67 63 2c 20 63 68 | 61 72 2a 2a 20 61 72 67 |argc, ch|ar** arg|
|00000d80| 76 29 0d 7b 09 0d 09 69 | 66 28 55 73 69 6e 67 4d |v).{...i|f(UsingM|
|00000d90| 75 6c 74 69 70 6c 65 49 | 6e 68 65 72 69 74 61 6e |ultipleI|nheritan|
|00000da0| 63 65 28 61 72 67 63 2c | 20 61 72 67 76 29 29 0d |ce(argc,| argv)).|
|00000db0| 09 09 4d 49 46 69 78 54 | 61 62 6c 65 73 28 29 3b |..MIFixT|ables();|
|00000dc0| 0d 09 65 6c 73 65 0d 09 | 09 53 49 46 69 78 54 61 |..else..|.SIFixTa|
|00000dd0| 62 6c 65 73 28 29 3b 0d | 09 72 65 74 75 72 6e 20 |bles();.|.return |
|00000de0| 30 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |0;.}....|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000e10| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 29 3b 0d |unsigned| int );.|
|00000e20| 76 6f 69 64 20 5f 5f 64 | 6c 5f 5f 31 32 48 61 6e |void __d|l__12Han|
|00000e30| 0c 46 69 78 54 61 62 6c | 65 73 2e 63 70 6c 02 00 |.FixTabl|es.cpl..|
|00000e40| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 40 00 80 |..TEXTMP|S ...@..|
|00000e50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 40 00 80 |..TEXTMP|S ...@..|
|00000e60| 00 00 00 e6 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 a2 59 5c 0f 00 00 | 0d 65 00 00 01 7e 3b 0d |...Y\...|.e...~;.|
|00000e80| 0d 23 6c 69 6e 65 20 37 | 20 22 43 6c 61 73 73 65 |.#line 7| "Classe|
|00000e90| 73 2e 68 22 0d 73 74 72 | 75 63 74 20 42 61 73 65 |s.h".str|uct Base|
|00000ea0| 20 7b 09 2f 2a 20 73 69 | 7a 65 6f 66 20 42 61 73 | {./* si|zeof Bas|
|00000eb0| 65 20 3d 3d 20 34 20 2a | 2f 0d 0d 23 6c 69 6e 65 |e == 4 *|/..#line|
|00000ec0| 20 31 33 20 22 43 6c 61 | 73 73 65 73 2e 68 22 0d | 13 "Cla|sses.h".|
|00000ed0| 73 74 72 75 63 74 20 5f | 5f 6d 70 74 72 20 2a 5f |struct _|_mptr *_|
|00000ee0| 5f 76 70 74 72 3b 0d 7d | 3b 0d 65 78 74 65 72 6e |_vptr;.}|;.extern|
|00000ef0| 20 73 74 72 75 63 74 20 | 5f 5f 6d 70 74 72 20 2a | struct |__mptr *|
|00000f00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 62 6c 65 |...H..Mo|naco.ble|
|00000f10| 73 2e 63 70 0d 09 0d 09 | 41 6e 20 4d 50 57 20 54 |s.cp....|An MPW T|
|00000f20| 6f 6f 6c 20 74 6f 00 06 | 00 04 00 31 00 2d 01 d2 |ool to..|...1.-..|
|00000f30| 02 46 00 31 00 2d 01 d2 | 02 46 a2 d1 fa 32 00 00 |.F.1.-..|.F...2..|
|00000f40| 00 c5 00 00 00 c5 00 00 | 0c 98 01 00 00 00 01 00 |........|........|
|00000f50| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1b 5b 4c |...L...L|...2..[L|
|00000f60| 06 40 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.@.....2|..MPSR..|
|00000f70| 00 0a 03 ed ff ff 00 00 | 00 00 00 1d 02 94 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+